"""
    变量修饰符与属性
"""
class PC:
    # “__”同等有java的private修饰符
    __version = '1.0.1'

    # “_”同等有java的protected修饰符
    _pop = '版本描述'

    # 同等有java的public修饰符
    tag = 'tahoe'

    # 获取属性值
    @property
    def version(self):
        return self.__version

    @version.setter
    def version(self, value):
        self.__version = value

pc = PC()
pc.version = '1.0.3'
print(pc.version)
print(pc.tag)

PC.tag = 'ccid'
print(PC.tag)

